import type { App } from 'vue';
import DeptSelect from './deptSelect';
import UserSelect from './userSelect';
const install = (app: App) => {
  const DeptSelectRegistered = app.component('DeptSelect');
  const UserSelectRegisted = app.component('UserSelect');
  if (!DeptSelectRegistered) {
    app.component('DeptSelect', DeptSelect);
  }

  if (!UserSelectRegisted) {
    app.component('UserSelect', UserSelect);
  }
};

export default install;
